import style from './TextButton.module.css'

interface textButton{
    darkMode?:boolean,
    children?:React.ReactNode,
    onClick?:(e:React.MouseEvent<HTMLButtonElement>)=>void
}

export default function TextButton(props:textButton){

    if(props.darkMode){
        return (
            <button className={style.textButton} onClick={props.onClick} style={{color:"white"}}>{props.children}</button>
        )
    }else{
        return(
            <button className={style.textButton} onClick={props.onClick} style={{color:"black"}}>{props.children}</button>
        )
    }
}
